package com.itheima.api;

public class test02 {
    public static void main(String[] args) {
//        long start = System.currentTimeMillis();
//        for (int i = 0; i <1000 ; i++) {
//            System.out.println(i);
//        }
//        long end=System.currentTimeMillis();
//        System.out.println(end-start);
        int[] arr1={10,20,30,40,50};
        int[] arr2=new int[10];
        System.arraycopy(arr1,0,arr2,5,arr1.length);
        for (int i = 0; i < arr2.length; i++) {
            System.out.println(arr2[i]);
        }
    }
}
